<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:U('Common/addCommon')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">餐桌号</label>
            <div class="controls">
                <input type="text" class="text input-large" name="num" value="{$data.num|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">是否包间</label>
            <div class="controls">
                <label class="radio">
                    <input type="radio" value="0" name="is_bj" <if condition="$data['is_bj'] eq 0">checked="checked"</if>>否                                    
                </label>
                <label class="radio">
                    <input type="radio" value="1" name="is_bj" <if condition="$data['is_bj'] eq 1">checked="checked"</if>>是
                </label>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">包间费用</label>
            <div class="controls">
                <input type="text" class="text input-large" name="bj_money" value="{$data.bj_money|default=0}">
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="table" value="board">
            <input type="hidden" name="methods" value="SeatNumber">
            <input type="hidden" name="fields" value="num,text;is_bj,text;bj_money,text">
            <input type="hidden" name="id" value="{$data.id|default=0}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('SeatNumber/index')}');
    </script>
</block>
